package com.neusoft.nep.grid.caluate;



public class CaluateCOAQI {
    public static  int caluateCOAQI(int CO) {
        int COAQI = 0;
        if (CO >= 0 && CO <= 5) {
            COAQI=1;
        }
        else if (CO>= 6 && CO <= 10) {
            COAQI=2;
        }else if (CO>= 11 && CO<= 35) {
            COAQI=3;
        }else if (CO >= 36 && CO <= 60) {
            COAQI=4;
        }else if( CO>= 61&& CO <= 90) {
            COAQI=5;
        }else if (CO>= 91 &&CO <= 150) {
            COAQI=6;
        }
        return COAQI;
    }
}
